package org.csu.bbs.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.csu.bbs.entity.Posts;
import org.csu.bbs.entity.UserInfo;
import org.csu.bbs.result.BetterResult;
import org.csu.bbs.result.Result;
import org.csu.bbs.result.User;

import java.util.ArrayList;
import java.util.List;

public interface PostsService extends IService<Posts> {
    Result AddPosts(Posts posts);
    List<Posts> GetBySection(int id);
    List<Posts> Search(String keywords);
    int DeleteOne(Integer id);
    List<Posts> GetByUserId(String userid);
    List<Posts> GetCollection(String userid);
    ArrayList<Integer> searchCount();
    BetterResult<UserInfo> GetPoster(int id);
    BetterResult<Integer> LikePost(int id, boolean add);
}
